package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
public class Wxguocheng {
    private int wxId;
    private Integer gdId;//维修工单id
    private String wxBeizhu;//维修工程备注
    private Timestamp wxYjtime;//维修工程已经完成日期
    private User emp;//员工对象
    private Timestamp wxKstime;//维修开始时间
    private Timestamp wxWctime;//维修完成时间
    private String wxZhuangtai;//维修工程状态

    @Id
    @Column(name = "wx_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getWxId() {
        return wxId;
    }

    public void setWxId(int wxId) {
        this.wxId = wxId;
    }

    @Basic
    @Column(name = "gd_id", nullable = true)
    public Integer getGdId() {
        return gdId;
    }

    public void setGdId(Integer gdId) {
        this.gdId = gdId;
    }

    @Basic
    @Column(name = "wx_beizhu", nullable = true, length = 200)
    public String getWxBeizhu() {
        return wxBeizhu;
    }

    public void setWxBeizhu(String wxBeizhu) {
        this.wxBeizhu = wxBeizhu;
    }

    @Basic
    @Column(name = "wx_yjtime", nullable = true)
    public Timestamp getWxYjtime() {
        return wxYjtime;
    }

    public void setWxYjtime(Timestamp wxYjtime) {
        this.wxYjtime = wxYjtime;
    }

    @ManyToOne
    @JoinColumn(name = "emp_id", referencedColumnName = "emp_id")
    public User getEmp() {
        return emp;
    }

    public void setEmp(User emp) {
        this.emp = emp;
    }

    @Basic
    @Column(name = "wx_kstime", nullable = true)
    public Timestamp getWxKstime() {
        return wxKstime;
    }

    public void setWxKstime(Timestamp wxKstime) {
        this.wxKstime = wxKstime;
    }

    @Basic
    @Column(name = "wx_wctime", nullable = true)
    public Timestamp getWxWctime() {
        return wxWctime;
    }

    public void setWxWctime(Timestamp wxWctime) {
        this.wxWctime = wxWctime;
    }

    @Basic
    @Column(name = "wx_zhuangtai", nullable = true, length = 200)
    public String getWxZhuangtai() {
        return wxZhuangtai;
    }

    public void setWxZhuangtai(String wxZhuangtai) {
        this.wxZhuangtai = wxZhuangtai;
    }

}
